Optimal. Leaf size=70 \[ -\frac{2 \left (a^2+b^2\right ) \cos (c+d x) (b-a \tan (c+d x))}{3 d}-\frac{\cos ^3(c+d x) (b-a \tan (c+d x)) (a+b \tan (c+d x))^2}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0687944, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3512, 723, 637} \[ -\frac{2 \left (a^2+b^2\right ) \cos (c+d x) (b-a \tan (c+d x))}{3 d}-\frac{\cos ^3(c+d x) (b-a \tan (c+d x)) (a+b \tan (c+d x))^2}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3512
Rule 723
Rule 637
Rubi steps
\begin{align*} \int \cos ^3(c+d x) (a+b \tan (c+d x))^3 \, dx &=\frac{\left (\cos (c+d x) \sqrt{\sec ^2(c+d x)}\right ) \operatorname{Subst}\left (\int \frac{(a+x)^3}{\left (1+\frac{x^2}{b^2}\right )^{5/2}} \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=-\frac{\cos ^3(c+d x) (b-a \tan (c+d x)) (a+b \tan (c+d x))^2}{3 d}+\frac{\left (2 \left (a^2+b^2\right ) \cos (c+d x) \sqrt{\sec ^2(c+d x)}\right ) \operatorname{Subst}\left (\int \frac{a+x}{\left (1+\frac{x^2}{b^2}\right )^{3/2}} \, dx,x,b \tan (c+d x)\right )}{3 b d}\\ &=-\frac{2 \left (a^2+b^2\right ) \cos (c+d x) (b-a \tan (c+d x))}{3 d}-\frac{\cos ^3(c+d x) (b-a \tan (c+d x)) (a+b \tan (c+d x))^2}{3 d}\\ \end{align*}
Mathematica [A] time = 0.356454, size = 81, normalized size = 1.16 \[ \frac{-9 b \left (a^2+b^2\right ) \cos (c+d x)+\left (b^3-3 a^2 b\right ) \cos (3 (c+d x))+2 a \sin (c+d x) \left (\left (a^2-3 b^2\right ) \cos (2 (c+d x))+5 a^2+3 b^2\right )}{12 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.055, size = 75, normalized size = 1.1 \begin{align*}{\frac{1}{d} \left ( -{\frac{{b}^{3} \left ( 2+ \left ( \sin \left ( dx+c \right ) \right ) ^{2} \right ) \cos \left ( dx+c \right ) }{3}}+a{b}^{2} \left ( \sin \left ( dx+c \right ) \right ) ^{3}-b{a}^{2} \left ( \cos \left ( dx+c \right ) \right ) ^{3}+{\frac{{a}^{3} \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1216, size = 104, normalized size = 1.49 \begin{align*} -\frac{3 \, a^{2} b \cos \left (d x + c\right )^{3} - 3 \, a b^{2} \sin \left (d x + c\right )^{3} +{\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} a^{3} -{\left (\cos \left (d x + c\right )^{3} - 3 \, \cos \left (d x + c\right )\right )} b^{3}}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.75308, size = 173, normalized size = 2.47 \begin{align*} -\frac{3 \, b^{3} \cos \left (d x + c\right ) +{\left (3 \, a^{2} b - b^{3}\right )} \cos \left (d x + c\right )^{3} -{\left (2 \, a^{3} + 3 \, a b^{2} +{\left (a^{3} - 3 \, a b^{2}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan{\left (c + d x \right )}\right )^{3} \cos ^{3}{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]